package com.biz.controller.api;


import com.biz.service.api.WxUtilServiceI;
import com.framework.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * qt接口
 *
 * @author  lzq
 *
 */
@Controller
@RequestMapping("/api/QTclerk")
public class QueryClerkController extends BaseController {

    @Resource(name = "wxUtilService")
    private WxUtilServiceI wxUtilService;

    /**
     * h获取token(本地)
     *
     * @return
     */
    @RequestMapping(value = "/wx_getToken")
    public
    @ResponseBody
    void wx_getToken_bd(HttpServletResponse response) throws Exception {
        String token=wxUtilService.getAccessToken_bd();
        writeJson(token,response);
    }


}